package com.study.sqlSession;

import com.study.pojo.Configuration;

public class SqlSessionFactoryImpl implements SqlSessionFactory {

    private Configuration configuration;
    public SqlSessionFactoryImpl(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new SqlSessionImpl(configuration);
    }
}
